@charset "utf-8";


//行内元素转换为块级元素
@mixin newline{
  content: "\A";
  white-space: pre;
}
/***图片溢出处理***/
@mixin imgoverflow{
    overflow: hidden;
    text-align: center;
}

@mixin textover{
     white-space: nowrap;
     overflow: hidden;
     text-overflow:ellipsis;
}
@mixin textover2{
    display: -webkit-box;  
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
}


//公共样式
.box-hd{
    position: relative;
    height: 58px;
    .title{
        font-size: 22px;
        font-weight: 200;
        line-height: 58px;
        color: #333;
    }
    .more{
        position: absolute;
        top: 0;
        right: 0;
        .tab-list{
            padding: 16px 0 0;
            font-size: 16px;
            li{
                display: inline-block;
                margin: 0 15px;
                color: #424242;
                border-bottom: 2px solid transparent;
                -webkit-transition: border-color .5s;
                transition: border-color .5s;
                cursor: pointer;
                &.tab-active{
                    color: #ff6700;
                    border-bottom: 2px solid #ff6700;
                }
            }
        }
    }
}

.home-brick-row-1-box {
    height: 358px
}
.home-brick-row-2-box {
    height: 686px
}

//title 链接color
.brick-item-s .title, .brick-item-s .title a{
    color: #333;
}


//顶部广告栏
.site-bar {
    width: 100%;
    background: url(../img/Max.jpg) no-repeat center;
    .site-bar-link {
        display: block;
        width: 100%;
        height: 120px;
        text-indent: -9999em
    }
}

//分类导航栏
.site-header .header-nav{
    .site-category{
        display: block;
        .site-category-list{
            height: 420px;
            color: #fff;
            border: 0;
            background: #333;
            background: rgba(0,0,0,0.6);
            .title{
                color: #fff;
            }
            i{
                color: rgba(255,255,255,0.5);
            }
        }
    }
}

//中间部分S
.mid-content{
    .container{
        position: relative;
    }
    //导航栏
    .site-header{
        .header-logo{
            float: left;
            width: 62px;
            margin-top: 22px;
            font-size: 0;
            .logo{
                display: block;
                width: 55px;
                height: 55px;
                overflow: hidden;
                background: url(../img/logo-footer.png) no-repeat 50% 50%;
            }
            .doodle .link-block{
                position: absolute;
                left: 69px;
                bottom: 0;
                z-index: 21;
                width: 165px;
                height: 100px;
                background-repeat: no-repeat;
                background-position: center center;
                text-indent: -9999em;
                background-image:url(../img/index/520-g.gif) ;
            }
        }
        .header-nav{
            .site-category-list{
                height: 420px;
                color: #fff;
                background: #333;
                background: rgba(0,0,0,0.6);
            }
        }
    }
    //选项卡
    .home-hero-container{
        .home-hero{
            margin-bottom: 26px;
        }
        //轮播图部分
        .home-hero-slider{
            position: relative;
            height: 460px;
            max-width: 100%;
            overflow: hidden;
            .ui-viewport{
                width: 100%;
                height: 460px;
                overflow: hidden;
                position: relative;
                -webkit-transform: translatez(0);
                -ms-transform: translatez(0);
                transform: translatez(0);
                .slide{
                    display: block;
                    height: 460px;
                    list-style: outside none none;
                    position: absolute;
                    width: 1226px;
                    z-index: 1;
                    opacity: 0;
                    transition: all .8s;
                    img{
                        width: 1226px;
                        height: 460px;
                    }
                }
                .slide-active{
                    list-style: outside none none;
                    z-index: 2;
                    opacity: 1;
                }
            }
            .ui-controls{
                .ui-pager{
                    display: block;
                    left: auto;
                    right: 30px;
                    width: 400px;
                    font-size: 12px;
                    color: #666;
                    text-align: right;
                    position: absolute;
                    bottom: 20px;
                    .ui-pager-item{
                        display: inline-block;
                    }
                    i{
                        display: block;
                        width: 6px;
                        height: 6px;
                        margin: 0 5px;
                        border: 2px solid #fff;
                        border-color: rgba(255,255,255,0.3);
                        border-radius: 10px;
                        text-align: left;
                        text-indent: -9999px;
                        overflow: hidden;
                        cursor: pointer;
                        background: #f5f5f5;
                        background: rgba(0,0,0,0.4);
                        -webkit-transition: all .2s;
                        transition: all .2s;
                    }
                    .ui-pager-item:hover,.pager-active{
                        i{
                            background: #fff;
                            background: rgba(255,255,255,0.4);
                            border-color: #757575;
                            border-color: rgba(0,0,0,0.4);
                        }
                    }
                }
                .ui-controls-direction{
                    span{
                        position: absolute;
                        top: 50%;
                        width: 41px;
                        height: 69px;
                        margin-top: -35px;
                        text-indent: -9999px;
                        cursor: pointer;
                        overflow: hidden;
                    }
                    .ui-prev{
                        left: 234px;
                        background: url(../img/index/icon-slides.png) no-repeat -84px 50%;
                        &:hover{
                            background-position: 0 50%;
                        }
                    }
                    .ui-next{
                        right: 0;
                        background: url(../img/index/icon-slides.png) no-repeat -125px 50%;
                        &:hover{
                            background-position: -42px 50%;
                        }
                    }
                }
            }
        }
        //轮播图下面部分
        .home-hero-sub{
            margin-top: 14px;
            .home-channel-list{
                padding: 3px;
                font-size: 12px;
                text-align: center;
                background: #5f5750;
                li{
                    position: relative;
                    float: left;
                    width: 70px;
                    height: 82px;
                    padding: 0 3px;
                    &::before,&::after{
                        position: absolute;
                        content: "";
                        background: #665e57;
                    }
                    &::before{
                        top: -1px;
                        left: 6px;
                        width: 64px;
                        height: 1px;
                    }
                    &::after{
                        top: 6px;
                        left: 0;
                        width: 1px;
                        height: 70px;
                    }
                    &.left::after,&.top::before{
                        display: none;
                    }
                }
                a{
                    display: block;
                    padding-top: 18px;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    overflow: hidden;
                    color: #fff;
                    color: rgba(255,255,255,0.7);
                    *color: #fff;
                    -webkit-transition: color .2s;
                    transition: color .2s;
                    i{
                        display: block;
                        height: 24px;
                        margin-bottom: 4px;
                        font-size: 24px;
                        line-height: 24px;
                    }
                }
                li:hover a{
                    color: #fff;
                }
            }
            .home-promo-list{
                li{
                    float: left;
                    width: 316px;
                    height: 170px;
                    margin-left: 15px;
                    -webkit-transition: -webkit-box-shadow .2s linear;
                    transition: box-shadow .2s linear;
                    a{
                        display: block;
                        img{
                           height: 170px;
                           width: 316px;
                        }
                    }
                    &:first-child{
                        margin-left: 14px;
                    }
                }
            }
        }
        .home-stars-goods{
            .box-hd{
                .more{
                    top: 24px;
                }
            }
            .box-bd{
                position: relative;
                width: 1226px;
                .carousel-wrapper{
                    height: 340px;
                    overflow: hidden;
                    padding-bottom: 40px;
                }
            }
            .goods-list{
                position: relative;
                left: 0px;
                width: 2480px;
                transition: left 0.5s ease 0s;
                font-size: 0;
                li{
                    display: inline-block;
                    height: 300px;
                    width: 234px;
                    padding-top: 39px;
                    margin-right: 14px;
                    border-top-width: 1px;
                    border-top-style: solid;
                    text-align: center;
                    background: #fafafa;
                    -webkit-transition: all .6s;
                    transition: all .6s;
                }
                .thumb{
                    display: block;
                    width: 160px;
                    margin: 0 auto 22px;
                    img{
                        width: 160px;
                        height: 160px;
                    }
                }
                .title{
                    margin: 0 20px 3px;
                    font-size: 14px;
                    font-weight: 400;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    overflow: hidden;
                    a{
                        color: #212121;
                    }
                }
                .desc{
                    height: 18px;
                    margin: 0 20px 12px;
                    font-size: 12px;
                    color: #b0b0b0;
                    @include textover;
                }
                .price{
                    font-size: 14px;
                    color: #FF6700;
                }
            }
            .rainbow-list{
                .rainbow-item-1{
                    border-top-color: #ffac13
                }
                .rainbow-item-2{
                      border-top-color: #83c44e
                }
                .rainbow-item-3{
                    border-top-color: #2196f3
                }
                .rainbow-item-4{
                    border-top-color: #e53935
                }
                .rainbow-item-5{
                    border-top-color: #00c0a5
                }
                .rainbow-item-6{
                    border-top-color: #ffac13
                }
                .rainbow-item-7{
                    border-top-color: #83c44e
                }
                .rainbow-item-8{
                    border-top-color: #2196f3
                }
                .rainbow-item-9{
                    border-top-color: #e53935
                }
                .rainbow-item-10{
                    border-top-color: #00c0a5
                }
            }    
        }
    }
}


//主页重要内容S
.home-main{
    padding-top: 60px;
    //分类
    .home-brick-box{
        margin-bottom: 8px;
        .box-hd .more .tab-list li{
            margin:0px 0px 0px 30px;
        } 
        .brick-list{
            width: 992px;
            height: 614px;
        }   
        .brick-item{
            float: left;
            position: relative;
            width: 234px;
            margin-left: 14px;
            margin-bottom: 14px;
            background: #fff;
            -webkit-transition: all .2s linear;
            transition: all .2s linear;
        }
        .brick-item-1{
            height: 614px;
            margin-left: 0px;
        }
        .brick-item-m{
            height: 246px;
            padding: 34px 0 20px;
            text-align: center;
            .figure-img{
                width: 150px;
                height: 150px;
                margin: 0 auto 18px;
                a{ display: block; }
                img{
                    width: 150px;
                    height: 150px;
                }
            }
            .title{
                margin: 0 10px;
                font-size: 14px;
                font-weight: 400;
                a{
                    display: block;
                    color: #333;
                    @include textover;
                }
            }
            .desc{
                margin: 0 10px 10px;
                height: 18px;
                font-size: 12px;
                color: #b0b0b0;
                @include textover;
            }
            .price{
                margin: 0 10px 10px;
                color: #ff6700;
                font-size: 14px;
            }
            //遮罩层
            .review-wrap{
                position: absolute;
                bottom: 0;
                left: 0;
                width: 234px;
                height: 0;
                overflow: hidden;
                _zoom: 1;
                font-size: 12px;
                background: #ff6700;
                text-align: left;
                opacity: 0;
                filter: alpha(opacity=0)\9;
                -webkit-transition: all .2s linear;
                transition: all .2s linear;
                a{
                    display: block;
                    padding: 8px 30px;
                }
                .review{
                    margin-bottom: 5px;
                    color: #fff;
                    @include textover2;
                    -webkit-line-clamp: 2;
                }
                .author{
                    color: rgba(255,255,255,0.6);
                }
            }
        }
        .brick-item-s{
            height: 93px;
            padding-top: 50px;
            .figure-img{
                position: absolute;
                right: 20px;
                top: 32px;
                width: 80px;
                height: 80px;
                img{
                    width: 80px;
                    height: 80px;
                }
            }
            .title{
                margin: -10px 110px 5px 30px;
                font-size: 14px;
                font-weight: 400;
                a{
                    display: block;
                    @include textover;
                }
            }
            .price{
                margin: 0 110px 0 30px;
                font-size: 14px;
                color: #ff6700;
            }
            //浏览更多
            .figure-more{
                position: absolute;
                right: 35px;
                top: 48px;
                width: 48px;
                height: 48px;
                a{
                    color: #ff6700;
                }
                i{
                    font-size: 48px;
                    line-height: 48px;
                }
            }
            .lmore{
                display: block;
                margin: 0 110px 0 30px;
                font-size: 18px;
                color: #333;
                small{
                    display: block;
                    font-size: 12px;
                    color: #757575;
                }
            }
        }
        .brick-promo-list{
            .brick-item-m{
                height: 300px;
                padding: 0;
                margin-left: 0px;
                img{
                    height: 300px;
                }
            }
        }
        //hover 效果
        .brick-item:hover{
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
            transform: translate3d(0, -2px, 0);
            .review-wrap{
                height: 76px;
                opacity: 1;
            }
        }
    }
}

//为你推荐
.home-recm-box{
    margin-bottom: 22px;
    .box-hd{
        .more{
            top: 15px;
        }
    }
    .box-bd{
        width: 1226px;
        height: 320px;
        overflow: hidden;
        ul{
            position: relative;
            left: 0;
            width: 4960px;
            transition: left 0.5s ease 0s;
            li{
                position: relative;
                float: left;
                height: 300px;
                width: 194px;
                background-color: #fff;
                text-align: center;
                margin-right: 14px;
                margin-bottom: 14px;
                padding: 0 20px;
                transition: all 0.2s linear;
                div{
                    padding: 40px 0 15px;
                    height: 145px;
                    img{
                        width: 140px;
                        height: 140px;
                    }
                }
                .recommend-name{
                    margin-bottom: 10px;
                    height: 18px;
                    @include textover;
                    a{ 
                        display: block;
                        color: #333; 
                     }
                }
                .recommend-price{
                    margin-bottom: 10px;
                    color: #ff6700;
                }
                .recommend-tips{
                    color: #757575;
                }
                &:hover{
                    transform: translate3d(0, -2px, 0);
                }
            }
        }
    }
}

//热评产品
.home-review-box{
    margin-bottom: 22px;
    .review-list{
        width: 1240px;
        height: 415px;
        .review-item{
            float: left;
            width: 296px;
            height: 415px;
            margin-left: 14px;
            margin-bottom: 14px;
            background: #fff;
            transition: all .2s linear;
            &:first-of-type{
                margin-left: 0;
            }
            &:hover{
                -webkit-box-shadow: 0 15px 30px rgba(0,0,0,0.1);
                box-shadow: 0 15px 30px rgba(0,0,0,0.1);
                -webkit-transform: translate3d(0, -2px, 0);
                transform: translate3d(0, -2px, 0);
            }
            .figure-img{
                width: 296px;
                height: 220px;
                margin: 0 0 28px;
                a{ display: block }
                img{
                    width: 296px;
                    height: 220px;
                }
            }
            .review{
                height: 72px;
                margin: 0 28px 22px;
                font-size: 14px;
                line-height: 24px;
                font-weight: 400;
                overflow: hidden;
                a{ color: #333; }
            }
            .author{
                margin: 0 28px 8px;
                padding: 0 10px 0 0;
                font-size: 12px;
                color: #b0b0b0;
            }
            .info{
                margin: 0 30px;
                @include textover;
                color: #e0e0e0;
                .title{
                   display: inline-block;
                   font-size: 14px;
                   font-weight: 400; 
                   vertical-align: bottom;
                   @include textover;
                }
                .price{
                    display: inline;
                    color: #ff6700;
                }
            }
        }
    }
}

//内容
.home-content-box{
    margin-bottom: 22px;
    .content-list{
        width: 1240px;
        height: 420px;
        //公共样式
        .content-item{
            float: left;
            position: relative;
            width: 296px;
            height: 374px;
            padding: 45px 0 0;
            border-top: 1px solid #e0e0e0;
            margin-left: 14px;
            margin-bottom: 14px;
            background: #fff;
            -webkit-transition: all .2s linear;
            transition: all .2s linear;
            &:first-of-type{
                margin-left: 0;
            }
            &:hover{
                -webkit-box-shadow: 0 15px 30px rgba(0,0,0,0.1);
                box-shadow: 0 15px 30px rgba(0,0,0,0.1);
                -webkit-transform: translate3d(0, -2px, 0);
                transform: translate3d(0, -2px, 0);
            }
            .title{
                margin: 0 10px 18px;
                font-size: 16px;
                font-weight: 400;
                text-align: center;
            }
            //轮播图包裹层
            .carousel-wrap{
                height: 340px;
                overflow: hidden;
            }
            //轮播图
            .item-list{
                position: relative;
                height: 340px;
                text-align: center;
                overflow: hidden;
                left: 0;
                transition: left 0.5s ease 0s;
                li{
                    float: left;
                    width: 296px;
                    height: 340px;
                }
                .name{
                    margin: 0 20px 5px;
                    font-size: 20px;
                    font-weight: 400;
                    line-height: 1.25;
                    a{
                        display: block;
                        color: #333;
                        @include textover;
                    }
                }
                .desc{
                    margin: 0 48px 10px;
                    height: 40px;
                    font-size: 12px;
                    line-height: 20px;
                    color: #b0b0b0;
                    a{
                        color: #b0b0b0;
                        -webkit-line-clamp: 2;
                        @include textover2;
                    }
                }
                .price{
                    height: 21px;
                    margin: 0 10px 15px;
                    text-align: center;
                    a{ color: #333; }
                }
                .figure-img{
                    width: 216px;
                    height: 154px;
                    margin: 0 auto;
                    a{
                        display: block;
                        height: 154px;
                        img{
                            width: 216px;
                            height: 154px;
                        }
                    }
                }
                .more{
                    .thumb{
                        display: block;
                        width: 216px;
                        height: 154px;
                        margin: 30px auto 0;
                    }
                }
            }
            .item-list-1{
                width: 888px;
            }
            .item-list-2{
                width: 1184px;
            }
            //page
            .page-wrap{
                position: absolute;
                bottom: 15px;
                left: 0;
                width: 296px;
                height: 30px;
                line-height: 40px;
                white-space: nowrap;
                text-align: center;
                font-size: 0;
                i{
                    background: #b0b0b0;
                    width: 6px;
                    height: 6px;
                    border-radius:50% ;
                    display: inline-block;
                    margin:0 12px;
                    border: 2px solid #f5f5f5;
                    cursor: pointer;
                    &:hover{
                        background: #ff6700;
                    }
                }
                .page-active{
                    border-color: #ff6700;
                    background: #fff;
                    cursor: default;
                    &:hover{
                        background: none;
                    }
                }
            }
            //控制台
            .control-wrap{
                .control{
                    position: absolute;
                    top: 50%;
                    margin-top: -20px;
                    opacity: 0;
                    filter: alpha(opacity=0)\9;
                    -webkit-transition: all .6s;
                    transition: all .6s;
                    color: #fafafa;
                    background-color: rgba(66,66,66,0.2);
                    text-align: center;
                    cursor: pointer;
                    &:last-child{
                        right: 0;
                    }
                }
                
            }
            &:hover{
                .control{
                    opacity: 1;
                    &:hover{
                        background-color: rgba(66,66,66,0.6);
                    }
                }
            }
        }
        .content-item-book{
            border-top-color: #ffac13;
            color: #ffac13;
        }
        .content-item-theme{
            border-top-color: #83c44e;
            color: #83c44e;
        }
        .content-item-game{
            border-top-color: #e53935;
            color: #e53935;
        }
        .content-item-app{
            border-top-color: #2196f3;
            color: #2196f3;
        }
    }
}

/**视频**/
.home-video-box{
    margin-bottom: 60px;
    .box-hd{
        .more .more-link{
            font-size: 16px;
            line-height: 58px;
            color: #424242;
            -webkit-transition: all .4s;
            transition: all .4s;
            .iconfont{
                color: #b0b0b0;
                font-size: 24px;
                line-height: 12px;
                margin-left: 8px;
                vertical-align: -3px;
                -webkit-transition: all .4s;
                transition: all .4s;
            }
            &:hover{
                color: #ff6700;
                .iconfont{
                    color: #ff6700;
                }
            }
        }
    }
    .box-bd{
        .video-list{
            width: 1240px;
            height: 285px;
        }
        .video-item{
            position: relative;
            float: left;
            width: 296px;
            height: 285px;
            margin-left: 14px;
            margin-bottom: 14px;
            text-align: center;
            background: #fff;
            -webkit-transition: all .2s linear;
            transition: all .2s linear;
            .figure-img{
                position: relative;
                width: 296px;
                height: 180px;
                margin: 0 0 28px;
                a{
                    display: block;
                    height: 180px;
                }
                img{
                    width: 296px;
                    height: 180px;
                }
                .play{
                    position: absolute;
                    left: 20px;
                    bottom: 10px;
                    width: 32px;
                    height: 20px;
                    border: 2px solid #fff;
                    border-radius: 12px;
                    background-color: #424242;
                    background-color: rgba(0,0,0,0.6);
                    color: #fff;
                    -webkit-transition: all .2s;
                    transition: all .2s;
                    overflow: hidden;
                    i{
                        font-size: 18px;
                        line-height: 22px;
                    }
                }
            }
            .title{
               margin: 0 0 6px;
                font-size: 14px;
                font-weight: 400;
                text-align: center;
                color: #333; 
                a{ color: #333;  }
            }
            .desc{
                height: 18px;
                font-size: 12px;
                color: #b0b0b0;
            }
            &:hover{
                -webkit-box-shadow: 0 15px 30px rgba(0,0,0,0.1);
                box-shadow: 0 15px 30px rgba(0,0,0,0.1);
                -webkit-transform: translate3d(0, -2px, 0);
                transform: translate3d(0, -2px, 0);
                .play{
                    background-color: #ff6700;
                    border-color: #ff6700
                }
            }
        }
        .first-video-item{
            margin-left: 0px;
        }
    }
}
